<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>考试记录</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jmw.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
<script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.DatePicker.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 80
	});
});
</script>



</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo url("leftmenu/bottom")?>">首页</a></li>
    <li><a href="#">考试记录</a></li>
    </ul>
    </div>
 <form method="post" action="<?php echo url("paper/exam") ?>">
     <div style="clear: both;width:1100px;height:35px;line-height:35px;margin-bottom:5px;">
    <div class="rightinfo">	
     
            <!-- <ul class="seachforms">
            <li>
            <label>试卷名称：</label>
            <input type="text" name="title" class="scinputjmw" value="<?php echo isset($param['title'])?$param['title']:'';?>"/>
            </li>
            

            <li><label>考试日期：</label><input name="created_timestart" id="created_timestart" value="<?php echo isset($param['created_timestart'])?$param['created_timestart']:'';?>" type="text" class="scinputjmw" />---<input name="created_timeend" id="created_timeend" value="<?php echo isset($param['created_timeend'])?$param['created_timeend']:'';?>" type="text" class="scinputjmw" /></li>  
            <li>
            <li><label>&nbsp;</label><input type="submit" class="scbtn" value="查询" style="width:60px;"/></li>
 
         </ul>
 -->

            <ul class="seachforms">
                <li>
                <label>题目总数：</label>
                    <?php echo $all_count?>
                </li>
                <li>
                <label>正确数：</label>
                    <?php echo $right_count?>
                </li>
                <label>正确率：</label>
                    <?php echo $all_count?$right_count/$all_count:0 ?>
                </li>
            </ul>
        </div>
         </div>

</form>	
    <div class="tools">
    
    	<ul class="toolbar">

<!--        <li ><a href="#" onclick="editindex('paperid','<?php echo url("paper/add")?>/id/')"><span><img src="<?php echo $_BASE_DIR?>images_v1/t02.png" /></span>修改</a></li>
       
        <li class="click"><a href="#" onclick="isDel('paperid','<?php echo url("paper/del")?>','ids[]')"><span><img src="<?php echo $_BASE_DIR?>images_v1/t03.png" /></span>删除</a></li> -->
       
        </ul>

	
    </div>
<!---------------------------------------------------------------------------- -->

	<script>
	</script>
<form action="" method="post" name="form">
	
    <table class="tablelist">

    	<thead>
    	<tr>
        <th width="5%"><input type="checkbox" value="on" name="chkall" onClick="CheckAll(this.form)"/></th>
        	
        	    <th width="15%" >试题名称</th>
                <th width="15%" >用户答案</th>
                <th width="15%" >正确答案</th>
                <!-- <th width="25%" >操作</th> -->
			
        </tr>
        </thead>
        <tbody>
        <?php foreach ($item as $k=>$v):?>
        <tr>
            <td><input name="paperid" id="paperid" type="checkbox" value="<?php echo $v['id']?>" /></td>

            <td><?php echo h($v['title'])?></td>
            <td><?php echo h($v['answer'])?></td>
            <td><?php echo h(strtoupper($v['qanswer']))?></td>
            <!-- <td>
                <a href="<?php echo url("paper/dologadd").'/id/'?>">做题详情</a>
            </td> -->

        </tr> 
        <?php endforeach;?>
        
        </tbody>
    </table>
    
   </form>
 
    	<?php echo Q::control('pagination','pagination',array('url_args'=>$param,'pagination'=>$pagination,'show_count'=>1))?>
    </div>
  
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>
<iframe id="excel" name="excel" width="0" height="0"></iframe>
</html>


